<%@ include file="../includes/taglibs.jsp"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div class="vacancy">

	<h1>${vacancy.title}</h1>

	<c:if test="${vacancy.hasPublicationDate}">
		<div class="content-paddings vacancy-publicationDate">
			Дата публикации вакансии <span class="vacancy-publicationDate-value">
				${vacancy.formatedPublicationDate} </span>
		</div>
	</c:if>

	<div class="vacancy-headInfo">
		<table class="info-table">
			<tbody>
				<tr>
					<td class="vacancy-headInfo-title"><div class="content-paddings">Уровень зарплаты</div></td>
					<td class="vacancy-headInfo-title"><div class="content-paddings">Город</div></td>
					<td class="vacancy-headInfo-title"><div class="content-paddings">Требуемый опыт работы</div></td>
				</tr>
				<tr>
					<td class="vacancy-headInfo-text"><div class="content-paddings">${vacancy.salaryLevel}</div></td>
					<td class="vacancy-headInfo-text"><div class="content-paddings">${vacancy.city}</div></td>
					<td class="vacancy-headInfo-text"><div class="content-paddings">${vacancy.requiredExperience}</div></td>
				</tr>
			</tbody>
		</table>
	</div>

	<div class="content-paddings vacancy-content">
		${vacancy.description}

		<c:if test="${vacancy.hasResponsibility}">
			<p>
				<strong>Обязанности:</strong>
			</p>
			${vacancy.responsibility}
		</c:if>
		<c:if test="${vacancy.hasRequirements}">
			<p>
				<strong>Требования:</strong>
			</p>
			${vacancy.requirements}
		</c:if>
		<c:if test="${vacancy.hasTerms}">
			<p>
				<strong>Условия:</strong>
			</p>
			${vacancy.terms}
		</c:if>
		<c:if test="${vacancy.hasEmploymentType}">
			<p>
				<strong>Тип занятости:</strong>
			</p>
			${vacancy.employmentType}
		</c:if>
	</div>


</div>
